<template>
  <div class="goods">
    <goods-list-item
      class="goods-list"
      v-for="item in goods"
      :key="item.index"
      :goods-item="item"
      :isClick="isClick"
    />
  </div>
</template>

<script>
import GoodsListItem from "components/content/goods/GoodsListItem";
export default {
  name: "GoodsList",
  props: {
    goods: {
      type: Array,
      default() {
        return [];
      },
    },
    isClick: {
      type: Boolean,
      default() {
        return false;
      },
    },
  },
  components: {
    GoodsListItem,
  },
};
</script>

<style scoped>
.goods {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-around;
  font-size: 10px;
}
</style>